export default {
    // 将数据保存到本地存储
    setStorage(KEY,user){
        localStorage.setItem(KEY,JSON.stringify(user))
    },
    // 获取数据
    getStorage(KEY){
        return JSON.parse(localStorage.getItem(KEY)) || "{}"
    },
    // 删除本地存储
    removeStorage(KEY){
        console.log(KEY);
        localStorage.removeItem(KEY)
    }
}